package com.coco.dao;

import com.coco.entity.UserInfo;
import com.coco.model.UserInfoCondition;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author GHOSTLaycoo
 * @date 2020/2/28 0028 - 下午 16:43
 */
public interface UserMapper {
    UserInfo selectByUserInfo(@Param("username") String username,@Param("password") String password);

    List<UserInfo> getUserByCondition(UserInfoCondition user);

    UserInfo getUserById(String id);

    long getCountByCondition(UserInfoCondition user);

    int save(UserInfo user);

    int update(UserInfo user);

    int update1(UserInfo user);

    int delete(String id);

    int delete1(String id);

    int updateStatus(@Param("id")String id, @Param("status")String status);

    int save1(UserInfo user);
}
